<?php

namespace App\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class TokenRequestException extends HttpException
{
    protected $message = '认证服务器 token 请求失败';
    protected $code = 'token.request.error';

    /**
     * GuzzleClientException constructor.
     * @param string $exceptionMessage
     */
    public function __construct($exceptionMessage)
    {
        parent::__construct(401, $this->message.$exceptionMessage);
    }
}
